package br.com.fidalgotecnologia.layar.entity;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

@Entity
@Table(schema="poi", name="geolocation")
@SequenceGenerator(sequenceName="poi.geolocation_id_seq" , name="geolocation_seq")
public class Geolocation {
	private Long id;
	private BigDecimal lat;
	private BigDecimal lon;
	private BigDecimal alt;
	
	@Id
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="geolocation_seq")
	@Column(name="id")
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	@Column(name="lat",precision=19, scale=16)
	public BigDecimal getLat() {
		return lat;
	}
	public void setLat(BigDecimal lat) {
		this.lat = lat;
	}
	@Column(name="lon" ,precision=19, scale=16)
	public BigDecimal getLon() {
		return lon;
	}
	public void setLon(BigDecimal lon) {
		this.lon = lon;
	}
	@Column(name="alt",precision=19, scale=15)
	public BigDecimal getAlt() {
		return alt;
	}
	public void setAlt(BigDecimal alt) {
		this.alt = alt;
	}
}
